package com.lantosec.hmrp.modules.category.vo;

import com.lantosec.hmrp.core.mvc.BaseVO;
import com.lantosec.hmrp.modules.category.entity.UserInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="user对象", description="人员信息姓名，ID")
public class UserInfoVO extends BaseVO<UserInfo> {
    @Override
    public UserInfo convertToEntity() {
        return new UserInfo(this);
    }

    public UserInfoVO(UserInfo entity){
        this.title = entity.getTitle();
        this.value = entity.getValue();
    }

    @ApiModelProperty(value = "人员姓名")
    private String title;

    @ApiModelProperty(value = "人员ID")
    private String value;
}
